package com.ruoyi.system.domain.dto;

import com.ruoyi.common.core.page.PageQuery;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author wux
 * @date 2023/5/31 17:19
 */
@Data
public class ITProdInvDTO extends PageQuery {
    @ApiModelProperty(value = "项目id,必传")
    private Long projectId;

    @ApiModelProperty(value = "产品编码")
    private String prodCode;

    @ApiModelProperty(value = "所属隧道")
    private String tunnel;

    @ApiModelProperty(value = "隧道部位")
    private String tunnelArea;

    @ApiModelProperty(value = "工字钢类型")
    private String steel;

    @ApiModelProperty(value = "单元")
    private String unit;

    @ApiModelProperty(value = "产品类型（取自产品类型接口的code）")
    private String prodType;

    @Data
    public static class ITProdInvRecordDTO extends PageQuery {
        @ApiModelProperty(value = "记录ID")
        private Long id;

        @ApiModelProperty(value = "产品库存id")
        private Long invId;

        @ApiModelProperty(value = "操作类型 1入库 2出库")
        private Integer type;
    }

    @Data
    public static class ITProdInvOutDTO {
        @ApiModelProperty(value = "产品库存id")
        private Long invId;

        @ApiModelProperty(value = "出库数量")
        private Integer outNum;

        @ApiModelProperty(value = "收货人")
        private String consignee;

        @ApiModelProperty(value = "收货人签名")
        private String signImage;

        @ApiModelProperty(value = "备注")
        private String remark;

        @ApiModelProperty(value = "使用部位")
        private String usedPart;
    }

}
